﻿using FluentNHibernate.Mapping;
using Konekcija.Core.Reporting.Dto.Application.Profiles;

namespace Konekcija.Core.Reporting.Mappings.Profiles
{
    public class FeedbackMap : ClassMap<Feedback>
    {
        public FeedbackMap()
        {
            Schema("profile");
            Table("Feedbacks");

            Id(x => x.Id).GeneratedBy.GuidComb().Not.Nullable();
            Map(x => x.Post).Nullable();
            Map(x => x.DateCreated).Nullable();

            References(x => x.Product);
            References(x => x.User);
            References(x => x.Merchant);
        }
    }
}